package com.itheima.pojo;

import java.io.Serializable;

public class Medicine implements Serializable {
    private Integer id;
    private String name;
    private String ingredient;
    private String apply;
    private String price;

    public Medicine() {
    }

    public Medicine(String name, String ingredient, String apply, String price) {
        this.name = name;
        this.ingredient = ingredient;
        this.apply = apply;
        this.price = price;
    }

    public Medicine(Integer id, String name, String ingredient, String apply, String price) {
        this.id = id;
        this.name = name;
        this.ingredient = ingredient;
        this.apply = apply;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIngredient() {
        return ingredient;
    }

    public void setIngredient(String ingredient) {
        this.ingredient = ingredient;
    }

    public String getApply() {
        return apply;
    }

    public void setApply(String apply) {
        this.apply = apply;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Medicine{" + "id=" + id + ", name='" + name + '\'' + ", ingredient='" + ingredient + '\'' + ", apply='" + apply + '\'' + ", price='" + price + '\'' + '}';
    }
}
